//
//  ViewController.m
//  PodsLibDemo
//
//  Created by wangxiang on 2020/7/15.
//  Copyright © 2020 wangxiang. All rights reserved.
//

#import "ViewController.h"
#import "WXLPodsLibResource.h"
#import "WXFirstViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn setTitle:@"跳转到FirstVC页面" forState:UIControlStateNormal];
    [btn setTitleColor:UIColor.blackColor forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(gotoFirstVCButtonClicked) forControlEvents:UIControlEventTouchUpInside];
    btn.frame = CGRectMake(100, 100, 200, 40);
    [self.view addSubview:btn];
}

- (IBAction)addImage:(UIButton *)sender {
//    self.imageView.image = [UIImage imageNamed:@"LuLian2"];
    
    self.imageView.image = [WXLPodsLibResource imageNamed:@"LuLian2"];
    
}

- (void)gotoFirstVCButtonClicked{
    WXFirstViewController *vc = [[WXFirstViewController alloc] initWithNibName:NSStringFromClass([WXFirstViewController class]) bundle:[WXLPodsLibResource resourceBundle]];
    
    [self.navigationController pushViewController:vc animated:YES];
}
@end
